package com.example.lyqwork.pojo.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;

public class CarOrderDto {
    @NotBlank(message = " 用户名不能为空")
    private String customerName;

    @NotBlank(message = "计划不能为空")
    private String planName;

    @Min(value = 1, message = "User ID must be a positive number")
    private Integer userId;

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
